{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/aramhur/Dropbox/Data/KNPS/KNPS 2012 congressional/bjps koreasurvey_output.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 7 Feb 2018, 10:00:11

{com}. do "/var/folders/dc/pvb3ftwn0s77yg2dqmphjsxw0000gp/T//SD05397.000000"
{txt}
{com}. **** generating variables ****
. 
. //main variables 
.         gen dutyvote=Q67
{txt}
{com}.                 recode dutyvote 1=1 2=0 9=.
{txt}(dutyvote: 723 changes made)

{com}. 
.         gen voted=Q40
{txt}
{com}.                 recode voted 1/3=0 4=1
{txt}(voted: 2047 changes made)

{com}. 
.         gen nationpride=Q19
{txt}
{com}.                 recode nationpride 1=2 2=1 3/4=0 9=.
{txt}(nationpride: 2047 changes made)

{com}. 
. //covariates
.         gen collective=Q27
{txt}
{com}.                 recode collective 1=10 2=9 3=8 4=7 5=6 6=5 7=4 8=3 9=2 10=1 99=.
{txt}(collective: 2047 changes made)

{com}.                 
.         gen demsat=Q28
{txt}
{com}.                 recode demsat 99=.
{txt}(demsat: 4 changes made)

{com}.         
.         gen demsat3=demsat
{txt}(4 missing values generated)

{com}.                 recode demsat3 0/4=0 5=1 6/10=2
{txt}(demsat3: 1994 changes made)

{com}.         
.         gen female=Q15
{txt}
{com}.         recode female 1=0 2=1
{txt}(female: 2047 changes made)

{com}. 
.         gen age=Q16
{txt}
{com}.         gen agecat=age
{txt}
{com}.                 recode agecat 19/29=1 30/39=2 40/49=3 50/59=4 60/88=5
{txt}(agecat: 2047 changes made)

{com}.                 
.         gen trustpeople=Q35
{txt}
{com}.                 recode trustpeople 1=3 2=2 3=1 4=0 9=.
{txt}(trustpeople: 984 changes made)

{com}.                 
.         gen partystrength=.
{txt}(2,047 missing values generated)

{com}.                 replace partystrength=2 if Q50==1|Q50==2|Q50==3|Q50==4|Q50==5
{txt}(1,306 real changes made)

{com}.                 replace partystrength=1 if Q51==1|Q51==2|Q51==3|Q51==4|Q51==5
{txt}(264 real changes made)

{com}.                 replace partystrength=0 if Q51==6
{txt}(470 real changes made)

{com}.         
.         gen party=.
{txt}(2,047 missing values generated)

{com}.                 replace party=1 if Q50==1 | Q50==4 | Q51==1 | Q51==4
{txt}(837 real changes made)

{com}.                 replace party=2 if Q50==2 | Q51==2
{txt}(628 real changes made)

{com}.                 replace party=0 if Q50==3 | Q51==3 | Q50==5 | Q51==5
{txt}(105 real changes made)

{com}.                 label define part 0 "other" 1 "cons" 2 "lib"
{txt}
{com}.                 label values party part
{txt}
{com}.         
.         gen educ=Q120 
{txt}
{com}.                 recode educ 0=0 8=0 1/2=0 3/4=1 5=2 6/7=3
{txt}(educ: 2017 changes made)

{com}.                 label define educlevel 0 "under hs" 1 "hs" 2 "college" 3 "above"
{txt}
{com}.                 label values educ educlevel
{txt}
{com}.         
.         gen incomelevel=Q124
{txt}
{com}.                 recode incomelevel 99=.
{txt}(incomelevel: 10 changes made)

{com}.                 
.         gen electint=Q38
{txt}
{com}.                 recode electint 1=0 2=1 3=2 4=3 9=.
{txt}(electint: 2047 changes made)

{com}.                 
. //rescale all variables 0-1
.         replace nationpride=nationpride/2
{txt}(1,752 real changes made)

{com}.         replace collective=(collective-1)/9
{txt}(2,046 real changes made)

{com}.         replace electint=electint/3
{txt}(1,903 real changes made)

{com}.         replace agecat=(agecat-1)/4
{txt}(2,047 real changes made)

{com}.         replace trustpeople=(trustpeople-1)/3
{txt}(2,045 real changes made)

{com}.         replace partystrength=partystrength/2
{txt}(1,570 real changes made)

{com}.         replace educ=educ/3
{txt}(1,704 real changes made)

{com}.         gen educsq=(educ)^2
{txt}
{com}.         replace incomelevel=(incomelevel-1)/8
{txt}(2,037 real changes made)

{com}.         replace age=(age-19)/69
{txt}(2,047 real changes made)

{com}.         gen agesq=(age)^2
{txt}
{com}.                 
. 
. **** analysis ****
. 
. // replicate main results in table 2, column 1
. logit dutyvote c.nationpride##c.partystrength collective trustpeople electint age agesq educ i.party [pweight=wt]

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res: -965.7624}  
Iteration 1:{space 3}log pseudolikelihood = {res:-899.10588}  
Iteration 2:{space 3}log pseudolikelihood = {res:-897.85631}  
Iteration 3:{space 3}log pseudolikelihood = {res:-897.85337}  
Iteration 4:{space 3}log pseudolikelihood = {res:-897.85337}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,567
{txt}{col 49}Wald chi2({res}11{txt}){col 67}= {res}    116.79
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-897.85337{txt}{col 49}Pseudo R2{col 67}= {res}    0.0703

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}    Robust
{col 1}       dutyvote{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}nationpride {c |}{col 17}{res}{space 2} 1.697889{col 29}{space 2} .8423313{col 40}{space 1}    2.02{col 49}{space 3}0.044{col 57}{space 4} .0469504{col 70}{space 3} 3.348828
{txt}{space 2}partystrength {c |}{col 17}{res}{space 2} 1.427231{col 29}{space 2} .5674996{col 40}{space 1}    2.51{col 49}{space 3}0.012{col 57}{space 4} .3149518{col 70}{space 3}  2.53951
{txt}{space 15} {c |}
{space 2}c.nationpride#{c |}
c.partystrength {c |}{col 17}{res}{space 2}-1.811608{col 29}{space 2} .9153848{col 40}{space 1}   -1.98{col 49}{space 3}0.048{col 57}{space 4} -3.60573{col 70}{space 3}-.0174872
{txt}{space 15} {c |}
{space 5}collective {c |}{col 17}{res}{space 2} .2740027{col 29}{space 2} .2310115{col 40}{space 1}    1.19{col 49}{space 3}0.236{col 57}{space 4}-.1787715{col 70}{space 3}  .726777
{txt}{space 4}trustpeople {c |}{col 17}{res}{space 2} .5567044{col 29}{space 2} .2705845{col 40}{space 1}    2.06{col 49}{space 3}0.040{col 57}{space 4} .0263686{col 70}{space 3}  1.08704
{txt}{space 7}electint {c |}{col 17}{res}{space 2} 2.126039{col 29}{space 2} .2487059{col 40}{space 1}    8.55{col 49}{space 3}0.000{col 57}{space 4} 1.638584{col 70}{space 3} 2.613493
{txt}{space 12}age {c |}{col 17}{res}{space 2}-1.097288{col 29}{space 2} 1.015238{col 40}{space 1}   -1.08{col 49}{space 3}0.280{col 57}{space 4}-3.087119{col 70}{space 3} .8925426
{txt}{space 10}agesq {c |}{col 17}{res}{space 2} 3.136701{col 29}{space 2} 1.273124{col 40}{space 1}    2.46{col 49}{space 3}0.014{col 57}{space 4} .6414228{col 70}{space 3} 5.631979
{txt}{space 11}educ {c |}{col 17}{res}{space 2} .7142927{col 29}{space 2} .3091407{col 40}{space 1}    2.31{col 49}{space 3}0.021{col 57}{space 4} .1083881{col 70}{space 3} 1.320197
{txt}{space 15} {c |}
{space 10}party {c |}
{space 10}cons  {c |}{col 17}{res}{space 2} .4382291{col 29}{space 2}  .226012{col 40}{space 1}    1.94{col 49}{space 3}0.053{col 57}{space 4}-.0047464{col 70}{space 3} .8812045
{txt}{space 11}lib  {c |}{col 17}{res}{space 2} .4900595{col 29}{space 2} .2259097{col 40}{space 1}    2.17{col 49}{space 3}0.030{col 57}{space 4} .0472846{col 70}{space 3} .9328344
{txt}{space 15} {c |}
{space 10}_cons {c |}{col 17}{res}{space 2}-2.933424{col 29}{space 2}  .595605{col 40}{space 1}   -4.93{col 49}{space 3}0.000{col 57}{space 4}-4.100789{col 70}{space 3} -1.76606
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. // in odds ratios
. logit dutyvote c.nationpride##c.partystrength collective trustpeople electint age agesq educ i.party [pweight=wt], or

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res: -965.7624}  
Iteration 1:{space 3}log pseudolikelihood = {res:-899.10588}  
Iteration 2:{space 3}log pseudolikelihood = {res:-897.85631}  
Iteration 3:{space 3}log pseudolikelihood = {res:-897.85337}  
Iteration 4:{space 3}log pseudolikelihood = {res:-897.85337}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,567
{txt}{col 49}Wald chi2({res}11{txt}){col 67}= {res}    116.79
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-897.85337{txt}{col 49}Pseudo R2{col 67}= {res}    0.0703

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}    Robust
{col 1}       dutyvote{col 17}{c |} Odds Ratio{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}nationpride {c |}{col 17}{res}{space 2} 5.462406{col 29}{space 2} 4.601156{col 40}{space 1}    2.02{col 49}{space 3}0.044{col 57}{space 4}  1.04807{col 70}{space 3} 28.46936
{txt}{space 2}partystrength {c |}{col 17}{res}{space 2} 4.167143{col 29}{space 2} 2.364852{col 40}{space 1}    2.51{col 49}{space 3}0.012{col 57}{space 4} 1.370193{col 70}{space 3} 12.67345
{txt}{space 15} {c |}
{space 2}c.nationpride#{c |}
c.partystrength {c |}{col 17}{res}{space 2} .1633911{col 29}{space 2} .1495658{col 40}{space 1}   -1.98{col 49}{space 3}0.048{col 57}{space 4} .0271676{col 70}{space 3} .9826649
{txt}{space 15} {c |}
{space 5}collective {c |}{col 17}{res}{space 2} 1.315218{col 29}{space 2} .3038306{col 40}{space 1}    1.19{col 49}{space 3}0.236{col 57}{space 4}  .836297{col 70}{space 3} 2.068403
{txt}{space 4}trustpeople {c |}{col 17}{res}{space 2} 1.744913{col 29}{space 2} .4721462{col 40}{space 1}    2.06{col 49}{space 3}0.040{col 57}{space 4} 1.026719{col 70}{space 3} 2.965484
{txt}{space 7}electint {c |}{col 17}{res}{space 2} 8.381598{col 29}{space 2} 2.084553{col 40}{space 1}    8.55{col 49}{space 3}0.000{col 57}{space 4} 5.147875{col 70}{space 3} 13.64664
{txt}{space 12}age {c |}{col 17}{res}{space 2} .3337749{col 29}{space 2} .3388612{col 40}{space 1}   -1.08{col 49}{space 3}0.280{col 57}{space 4} .0456332{col 70}{space 3} 2.441329
{txt}{space 10}agesq {c |}{col 17}{res}{space 2} 23.02777{col 29}{space 2} 29.31721{col 40}{space 1}    2.46{col 49}{space 3}0.014{col 57}{space 4} 1.899181{col 70}{space 3}  279.214
{txt}{space 11}educ {c |}{col 17}{res}{space 2} 2.042741{col 29}{space 2} .6314945{col 40}{space 1}    2.31{col 49}{space 3}0.021{col 57}{space 4}  1.11448{col 70}{space 3}  3.74416
{txt}{space 15} {c |}
{space 10}party {c |}
{space 10}cons  {c |}{col 17}{res}{space 2}  1.54996{col 29}{space 2} .3503096{col 40}{space 1}    1.94{col 49}{space 3}0.053{col 57}{space 4} .9952648{col 70}{space 3} 2.413805
{txt}{space 11}lib  {c |}{col 17}{res}{space 2} 1.632413{col 29}{space 2}  .368778{col 40}{space 1}    2.17{col 49}{space 3}0.030{col 57}{space 4}  1.04842{col 70}{space 3} 2.541703
{txt}{space 15} {c |}
{space 10}_cons {c |}{col 17}{res}{space 2} .0532145{col 29}{space 2} .0316948{col 40}{space 1}   -4.93{col 49}{space 3}0.000{col 57}{space 4} .0165596{col 70}{space 3} .1710054
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. 
. // replicate figuure 1, left column
. logit dutyvote c.nationpride##c.partystrength collective trustpeople electint age agesq educ i.party [pweight=wt]

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res: -965.7624}  
Iteration 1:{space 3}log pseudolikelihood = {res:-899.10588}  
Iteration 2:{space 3}log pseudolikelihood = {res:-897.85631}  
Iteration 3:{space 3}log pseudolikelihood = {res:-897.85337}  
Iteration 4:{space 3}log pseudolikelihood = {res:-897.85337}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,567
{txt}{col 49}Wald chi2({res}11{txt}){col 67}= {res}    116.79
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-897.85337{txt}{col 49}Pseudo R2{col 67}= {res}    0.0703

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}    Robust
{col 1}       dutyvote{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}nationpride {c |}{col 17}{res}{space 2} 1.697889{col 29}{space 2} .8423313{col 40}{space 1}    2.02{col 49}{space 3}0.044{col 57}{space 4} .0469504{col 70}{space 3} 3.348828
{txt}{space 2}partystrength {c |}{col 17}{res}{space 2} 1.427231{col 29}{space 2} .5674996{col 40}{space 1}    2.51{col 49}{space 3}0.012{col 57}{space 4} .3149518{col 70}{space 3}  2.53951
{txt}{space 15} {c |}
{space 2}c.nationpride#{c |}
c.partystrength {c |}{col 17}{res}{space 2}-1.811608{col 29}{space 2} .9153848{col 40}{space 1}   -1.98{col 49}{space 3}0.048{col 57}{space 4} -3.60573{col 70}{space 3}-.0174872
{txt}{space 15} {c |}
{space 5}collective {c |}{col 17}{res}{space 2} .2740027{col 29}{space 2} .2310115{col 40}{space 1}    1.19{col 49}{space 3}0.236{col 57}{space 4}-.1787715{col 70}{space 3}  .726777
{txt}{space 4}trustpeople {c |}{col 17}{res}{space 2} .5567044{col 29}{space 2} .2705845{col 40}{space 1}    2.06{col 49}{space 3}0.040{col 57}{space 4} .0263686{col 70}{space 3}  1.08704
{txt}{space 7}electint {c |}{col 17}{res}{space 2} 2.126039{col 29}{space 2} .2487059{col 40}{space 1}    8.55{col 49}{space 3}0.000{col 57}{space 4} 1.638584{col 70}{space 3} 2.613493
{txt}{space 12}age {c |}{col 17}{res}{space 2}-1.097288{col 29}{space 2} 1.015238{col 40}{space 1}   -1.08{col 49}{space 3}0.280{col 57}{space 4}-3.087119{col 70}{space 3} .8925426
{txt}{space 10}agesq {c |}{col 17}{res}{space 2} 3.136701{col 29}{space 2} 1.273124{col 40}{space 1}    2.46{col 49}{space 3}0.014{col 57}{space 4} .6414228{col 70}{space 3} 5.631979
{txt}{space 11}educ {c |}{col 17}{res}{space 2} .7142927{col 29}{space 2} .3091407{col 40}{space 1}    2.31{col 49}{space 3}0.021{col 57}{space 4} .1083881{col 70}{space 3} 1.320197
{txt}{space 15} {c |}
{space 10}party {c |}
{space 10}cons  {c |}{col 17}{res}{space 2} .4382291{col 29}{space 2}  .226012{col 40}{space 1}    1.94{col 49}{space 3}0.053{col 57}{space 4}-.0047464{col 70}{space 3} .8812045
{txt}{space 11}lib  {c |}{col 17}{res}{space 2} .4900595{col 29}{space 2} .2259097{col 40}{space 1}    2.17{col 49}{space 3}0.030{col 57}{space 4} .0472846{col 70}{space 3} .9328344
{txt}{space 15} {c |}
{space 10}_cons {c |}{col 17}{res}{space 2}-2.933424{col 29}{space 2}  .595605{col 40}{space 1}   -4.93{col 49}{space 3}0.000{col 57}{space 4}-4.100789{col 70}{space 3} -1.76606
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. margins, dydx(partystrength) at(nationpride=(0(.1)1))
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     1,567
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Pr(dutyvote), predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:partystrength}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 9}.1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 9}.2}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 9}.3}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 9}.4}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 9}.6}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 9}.7}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 9}.8}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 9}.9}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:nationpride}{space 5}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27} Delta-method
{col 15}{c |}      dy/dx{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}partystrength {txt}{c |}
{space 10}_at {c |}
{space 11}1  {c |}{col 15}{res}{space 2} .2752918{col 27}{space 2} .1049636{col 38}{space 1}    2.62{col 47}{space 3}0.009{col 55}{space 4} .0695669{col 68}{space 3} .4810167
{txt}{space 11}2  {c |}{col 15}{res}{space 2} .2410715{col 27}{space 2} .0920723{col 38}{space 1}    2.62{col 47}{space 3}0.009{col 55}{space 4} .0606131{col 68}{space 3} .4215299
{txt}{space 11}3  {c |}{col 15}{res}{space 2} .2065382{col 27}{space 2}  .079969{col 38}{space 1}    2.58{col 47}{space 3}0.010{col 55}{space 4} .0498019{col 68}{space 3} .3632745
{txt}{space 11}4  {c |}{col 15}{res}{space 2} .1717458{col 27}{space 2} .0694339{col 38}{space 1}    2.47{col 47}{space 3}0.013{col 55}{space 4} .0356579{col 68}{space 3} .3078336
{txt}{space 11}5  {c |}{col 15}{res}{space 2} .1367475{col 27}{space 2} .0616222{col 38}{space 1}    2.22{col 47}{space 3}0.026{col 55}{space 4} .0159703{col 68}{space 3} .2575247
{txt}{space 11}6  {c |}{col 15}{res}{space 2} .1015953{col 27}{space 2} .0579355{col 38}{space 1}    1.75{col 47}{space 3}0.080{col 55}{space 4}-.0119563{col 68}{space 3} .2151469
{txt}{space 11}7  {c |}{col 15}{res}{space 2} .0663391{col 27}{space 2} .0593508{col 38}{space 1}    1.12{col 47}{space 3}0.264{col 55}{space 4}-.0499864{col 68}{space 3} .1826645
{txt}{space 11}8  {c |}{col 15}{res}{space 2} .0310259{col 27}{space 2} .0656539{col 38}{space 1}    0.47{col 47}{space 3}0.637{col 55}{space 4}-.0976534{col 68}{space 3} .1597053
{txt}{space 11}9  {c |}{col 15}{res}{space 2}-.0043002{col 27}{space 2} .0756823{col 38}{space 1}   -0.06{col 47}{space 3}0.955{col 55}{space 4}-.1526348{col 68}{space 3} .1440344
{txt}{space 10}10  {c |}{col 15}{res}{space 2}-.0395992{col 27}{space 2} .0881799{col 38}{space 1}   -0.45{col 47}{space 3}0.653{col 55}{space 4}-.2124286{col 68}{space 3} .1332303
{txt}{space 10}11  {c |}{col 15}{res}{space 2}-.0748349{col 27}{space 2}  .102226{col 38}{space 1}   -0.73{col 47}{space 3}0.464{col 55}{space 4}-.2751941{col 68}{space 3} .1255243
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. marginsplot

{text}{p 2 6 2}Variables that uniquely identify margins: nationpride{p_end}
{res}{txt}
{com}. 
. 
. //placebo test: still get neg interaction when nationpride replaced with a non-identity incentive? no
. logit dutyvote c.demsat##c.partystrength collective trustpeople electint age agesq educ i.party [pweight=wt]

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-965.44876}  
Iteration 1:{space 3}log pseudolikelihood = {res:-900.60187}  
Iteration 2:{space 3}log pseudolikelihood = {res:-899.36828}  
Iteration 3:{space 3}log pseudolikelihood = {res:-899.36536}  
Iteration 4:{space 3}log pseudolikelihood = {res:-899.36536}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,566
{txt}{col 49}Wald chi2({res}11{txt}){col 67}= {res}    111.74
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-899.36536{txt}{col 49}Pseudo R2{col 67}= {res}    0.0684

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}    Robust
{col 1}       dutyvote{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}demsat {c |}{col 17}{res}{space 2}-.0825826{col 29}{space 2} .1309387{col 40}{space 1}   -0.63{col 49}{space 3}0.528{col 57}{space 4}-.3392177{col 70}{space 3} .1740525
{txt}{space 2}partystrength {c |}{col 17}{res}{space 2}-.1411941{col 29}{space 2} .8020253{col 40}{space 1}   -0.18{col 49}{space 3}0.860{col 57}{space 4}-1.713135{col 70}{space 3} 1.430747
{txt}{space 15} {c |}
{space 7}c.demsat#{c |}
c.partystrength {c |}{col 17}{res}{space 2} .1122065{col 29}{space 2} .1414092{col 40}{space 1}    0.79{col 49}{space 3}0.427{col 57}{space 4}-.1649505{col 70}{space 3} .3893635
{txt}{space 15} {c |}
{space 5}collective {c |}{col 17}{res}{space 2} .2756045{col 29}{space 2} .2303543{col 40}{space 1}    1.20{col 49}{space 3}0.232{col 57}{space 4}-.1758817{col 70}{space 3} .7270907
{txt}{space 4}trustpeople {c |}{col 17}{res}{space 2} .5706756{col 29}{space 2} .2709532{col 40}{space 1}    2.11{col 49}{space 3}0.035{col 57}{space 4}  .039617{col 70}{space 3} 1.101734
{txt}{space 7}electint {c |}{col 17}{res}{space 2} 2.111249{col 29}{space 2} .2481226{col 40}{space 1}    8.51{col 49}{space 3}0.000{col 57}{space 4} 1.624938{col 70}{space 3} 2.597561
{txt}{space 12}age {c |}{col 17}{res}{space 2}-1.019603{col 29}{space 2} 1.006827{col 40}{space 1}   -1.01{col 49}{space 3}0.311{col 57}{space 4}-2.992949{col 70}{space 3} .9537422
{txt}{space 10}agesq {c |}{col 17}{res}{space 2} 3.050917{col 29}{space 2} 1.263596{col 40}{space 1}    2.41{col 49}{space 3}0.016{col 57}{space 4} .5743153{col 70}{space 3} 5.527519
{txt}{space 11}educ {c |}{col 17}{res}{space 2} .7293628{col 29}{space 2} .3069959{col 40}{space 1}    2.38{col 49}{space 3}0.018{col 57}{space 4} .1276618{col 70}{space 3} 1.331064
{txt}{space 15} {c |}
{space 10}party {c |}
{space 10}cons  {c |}{col 17}{res}{space 2} .4512562{col 29}{space 2} .2235939{col 40}{space 1}    2.02{col 49}{space 3}0.044{col 57}{space 4} .0130203{col 70}{space 3} .8894921
{txt}{space 11}lib  {c |}{col 17}{res}{space 2} .5190884{col 29}{space 2} .2224711{col 40}{space 1}    2.33{col 49}{space 3}0.020{col 57}{space 4} .0830531{col 70}{space 3} .9551238
{txt}{space 15} {c |}
{space 10}_cons {c |}{col 17}{res}{space 2} -1.62277{col 29}{space 2} .7906915{col 40}{space 1}   -2.05{col 49}{space 3}0.040{col 57}{space 4}-3.172497{col 70}{space 3}-.0730433
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. logit dutyvote c.electint##c.partystrength collective trustpeople electint age agesq educ i.party [pweight=wt]

{txt}note: electint omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-966.14329}  
Iteration 1:{space 3}log pseudolikelihood = {res:-901.58259}  
Iteration 2:{space 3}log pseudolikelihood = {res:-900.28467}  
Iteration 3:{space 3}log pseudolikelihood = {res:-900.28153}  
Iteration 4:{space 3}log pseudolikelihood = {res:-900.28153}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     1,568
{txt}{col 49}Wald chi2({res}10{txt}){col 67}= {res}    110.25
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-900.28153{txt}{col 49}Pseudo R2{col 67}= {res}    0.0682

{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29}    Robust
{col 1}       dutyvote{col 17}{c |}      Coef.{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}electint {c |}{col 17}{res}{space 2} 2.013019{col 29}{space 2} 1.121437{col 40}{space 1}    1.80{col 49}{space 3}0.073{col 57}{space 4}-.1849566{col 70}{space 3} 4.210995
{txt}{space 2}partystrength {c |}{col 17}{res}{space 2} .3977335{col 29}{space 2} .7409812{col 40}{space 1}    0.54{col 49}{space 3}0.591{col 57}{space 4}-1.054563{col 70}{space 3}  1.85003
{txt}{space 15} {c |}
{space 5}c.electint#{c |}
c.partystrength {c |}{col 17}{res}{space 2} .1033373{col 29}{space 2} 1.214567{col 40}{space 1}    0.09{col 49}{space 3}0.932{col 57}{space 4} -2.27717{col 70}{space 3} 2.483844
{txt}{space 15} {c |}
{space 5}collective {c |}{col 17}{res}{space 2} .2765755{col 29}{space 2} .2297674{col 40}{space 1}    1.20{col 49}{space 3}0.229{col 57}{space 4}-.1737602{col 70}{space 3} .7269112
{txt}{space 4}trustpeople {c |}{col 17}{res}{space 2} .5761974{col 29}{space 2} .2708193{col 40}{space 1}    2.13{col 49}{space 3}0.033{col 57}{space 4} .0454013{col 70}{space 3} 1.106994
{txt}{space 7}electint {c |}{col 17}{res}{space 2}        0{col 29}{txt}  (omitted)
{space 12}age {c |}{col 17}{res}{space 2} -1.01328{col 29}{space 2} 1.008499{col 40}{space 1}   -1.00{col 49}{space 3}0.315{col 57}{space 4}-2.989901{col 70}{space 3}  .963341
{txt}{space 10}agesq {c |}{col 17}{res}{space 2}  3.05045{col 29}{space 2} 1.265444{col 40}{space 1}    2.41{col 49}{space 3}0.016{col 57}{space 4} .5702259{col 70}{space 3} 5.530674
{txt}{space 11}educ {c |}{col 17}{res}{space 2} .7287356{col 29}{space 2}  .306086{col 40}{space 1}    2.38{col 49}{space 3}0.017{col 57}{space 4} .1288182{col 70}{space 3} 1.328653
{txt}{space 15} {c |}
{space 10}party {c |}
{space 10}cons  {c |}{col 17}{res}{space 2} .4531249{col 29}{space 2} .2223343{col 40}{space 1}    2.04{col 49}{space 3}0.042{col 57}{space 4} .0173578{col 70}{space 3} .8888921
{txt}{space 11}lib  {c |}{col 17}{res}{space 2} .5115428{col 29}{space 2} .2219079{col 40}{space 1}    2.31{col 49}{space 3}0.021{col 57}{space 4} .0766113{col 70}{space 3} .9464743
{txt}{space 15} {c |}
{space 10}_cons {c |}{col 17}{res}{space 2}-2.005879{col 29}{space 2} .7567583{col 40}{space 1}   -2.65{col 49}{space 3}0.008{col 57}{space 4}-3.489098{col 70}{space 3}-.5226596
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //placebo test2: neg interaction holds when partystrengh replaced with diff incentive? yes
. logit dutyvote c.nationpride##c.electint collective trustpeople electint age agesq educ [pweight=wt]

{txt}note: electint omitted because of collinearity
{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1325.4284}  
Iteration 1:{space 3}log pseudolikelihood = {res:-1211.9073}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1210.4545}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1210.4539}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1210.4539}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     2,041
{txt}{col 49}Wald chi2({res}8{txt}){col 67}= {res}    191.44
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-1210.4539{txt}{col 49}Pseudo R2{col 67}= {res}    0.0867

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}      dutyvote{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      z{col 48}   P>|z|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}nationpride {c |}{col 16}{res}{space 2} .6448065{col 28}{space 2} .3718264{col 39}{space 1}    1.73{col 48}{space 3}0.083{col 56}{space 4}-.0839598{col 69}{space 3} 1.373573
{txt}{space 6}electint {c |}{col 16}{res}{space 2} 2.646876{col 28}{space 2} .3913646{col 39}{space 1}    6.76{col 48}{space 3}0.000{col 56}{space 4} 1.879815{col 69}{space 3} 3.413936
{txt}{space 14} {c |}
{space 1}c.nationpride#{c |}
{space 4}c.electint {c |}{col 16}{res}{space 2}-.8222651{col 28}{space 2} .6016276{col 39}{space 1}   -1.37{col 48}{space 3}0.172{col 56}{space 4}-2.001434{col 69}{space 3} .3569033
{txt}{space 14} {c |}
{space 4}collective {c |}{col 16}{res}{space 2} .2654218{col 28}{space 2} .1958118{col 39}{space 1}    1.36{col 48}{space 3}0.175{col 56}{space 4}-.1183623{col 69}{space 3} .6492058
{txt}{space 3}trustpeople {c |}{col 16}{res}{space 2}  .279174{col 28}{space 2} .2318152{col 39}{space 1}    1.20{col 48}{space 3}0.228{col 56}{space 4}-.1751755{col 69}{space 3} .7335234
{txt}{space 6}electint {c |}{col 16}{res}{space 2}        0{col 28}{txt}  (omitted)
{space 11}age {c |}{col 16}{res}{space 2} .5732028{col 28}{space 2} .8054121{col 39}{space 1}    0.71{col 48}{space 3}0.477{col 56}{space 4}-1.005376{col 69}{space 3} 2.151782
{txt}{space 9}agesq {c |}{col 16}{res}{space 2} 1.401668{col 28}{space 2} 1.037737{col 39}{space 1}    1.35{col 48}{space 3}0.177{col 56}{space 4} -.632259{col 69}{space 3} 3.435596
{txt}{space 10}educ {c |}{col 16}{res}{space 2}  .529286{col 28}{space 2} .2687541{col 39}{space 1}    1.97{col 48}{space 3}0.049{col 56}{space 4} .0025376{col 69}{space 3} 1.056034
{txt}{space 9}_cons {c |}{col 16}{res}{space 2}-1.828409{col 28}{space 2} .3032078{col 39}{space 1}   -6.03{col 48}{space 3}0.000{col 56}{space 4}-2.422686{col 69}{space 3}-1.234133
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. logit dutyvote c.nationpride##c.demsat collective trustpeople electint age agesq educ [pweight=wt]

{res}{txt}Iteration 0:{space 3}log pseudolikelihood = {res:-1323.6022}  
Iteration 1:{space 3}log pseudolikelihood = {res: -1211.458}  
Iteration 2:{space 3}log pseudolikelihood = {res:-1210.0208}  
Iteration 3:{space 3}log pseudolikelihood = {res:-1210.0203}  
Iteration 4:{space 3}log pseudolikelihood = {res:-1210.0203}  
{res}
{txt}Logistic regression{col 49}Number of obs{col 67}= {res}     2,038
{txt}{col 49}Wald chi2({res}9{txt}){col 67}= {res}    186.16
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000
{txt}Log pseudolikelihood = {res}-1210.0203{txt}{col 49}Pseudo R2{col 67}= {res}    0.0858

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 16}{c |}{col 28}    Robust
{col 1}      dutyvote{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      z{col 48}   P>|z|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 3}nationpride {c |}{col 16}{res}{space 2} .5833692{col 28}{space 2} .4144149{col 39}{space 1}    1.41{col 48}{space 3}0.159{col 56}{space 4}-.2288691{col 69}{space 3} 1.395607
{txt}{space 8}demsat {c |}{col 16}{res}{space 2} .0567097{col 28}{space 2} .0459102{col 39}{space 1}    1.24{col 48}{space 3}0.217{col 56}{space 4}-.0332726{col 69}{space 3}  .146692
{txt}{space 14} {c |}
{space 1}c.nationpride#{c |}
{space 6}c.demsat {c |}{col 16}{res}{space 2}-.0819948{col 28}{space 2} .0736851{col 39}{space 1}   -1.11{col 48}{space 3}0.266{col 56}{space 4}-.2264148{col 69}{space 3} .0624253
{txt}{space 14} {c |}
{space 4}collective {c |}{col 16}{res}{space 2} .2577358{col 28}{space 2}  .195382{col 39}{space 1}    1.32{col 48}{space 3}0.187{col 56}{space 4}-.1252058{col 69}{space 3} .6406775
{txt}{space 3}trustpeople {c |}{col 16}{res}{space 2} .2615894{col 28}{space 2} .2314697{col 39}{space 1}    1.13{col 48}{space 3}0.258{col 56}{space 4}-.1920828{col 69}{space 3} .7152616
{txt}{space 6}electint {c |}{col 16}{res}{space 2}  2.19496{col 28}{space 2} .1960291{col 39}{space 1}   11.20{col 48}{space 3}0.000{col 56}{space 4}  1.81075{col 69}{space 3}  2.57917
{txt}{space 11}age {c |}{col 16}{res}{space 2} .5345652{col 28}{space 2} .8056263{col 39}{space 1}    0.66{col 48}{space 3}0.507{col 56}{space 4}-1.044433{col 69}{space 3} 2.113564
{txt}{space 9}agesq {c |}{col 16}{res}{space 2} 1.450805{col 28}{space 2} 1.037289{col 39}{space 1}    1.40{col 48}{space 3}0.162{col 56}{space 4}-.5822446{col 69}{space 3} 3.483854
{txt}{space 10}educ {c |}{col 16}{res}{space 2} .5301003{col 28}{space 2} .2690638{col 39}{space 1}    1.97{col 48}{space 3}0.049{col 56}{space 4}  .002745{col 69}{space 3} 1.057456
{txt}{space 9}_cons {c |}{col 16}{res}{space 2}-1.837959{col 28}{space 2} .3266881{col 39}{space 1}   -5.63{col 48}{space 3}0.000{col 56}{space 4}-2.478256{col 69}{space 3}-1.197662
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/aramhur/Dropbox/Data/KNPS/KNPS 2012 congressional/bjps koreasurvey_output.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 7 Feb 2018, 10:00:45
{txt}{.-}
{smcl}
{txt}{sf}{ul off}